From: Jonas Dreßler Date: Sat, 20 Feb 2021 11:33:29 +0000 (+0100) Subject: keyboard: Clear keyboard rest timer when opening immediately X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~140 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f3f0396b7ea4501556af0bc97d95ce8c1c10087e;p=gnome-shell.git keyboard: Clear keyboard rest timer when opening immediately When immediate is true on open(), we want to show the OSK immediately, it also makes sense to cleanup the keyboard rest timer in that case. Part-of: --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index f411cf145..2d7e50664 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -1743,12 +1743,13 @@ var Keyboard = GObject.registerClass({ return; } + this._clearKeyboardRestTimer(); + if (immediate) { this._open(); return; } - this._clearKeyboardRestTimer(); this._keyboardRestingId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, KEYBOARD_REST_TIME, () => {